package co.chonghao.ch_kuaichong_user.bean;

import android.support.v4.app.Fragment;
import android.os.Bundle;

import co.chonghao.ch_kuaichong_user.R;
import co.chonghao.ch_kuaichong_user.ui.fragments.HomeFragment;
import co.chonghao.ch_kuaichong_user.ui.fragments.MyFragment;
import co.chonghao.ch_kuaichong_user.ui.fragments.OrderFragment;

/**
 * 描述:枚举封闭数据
 */

public enum MainTabs {
    MAIN("MAIN", "首页", R.drawable.tab_icon_home,HomeFragment.class,null),
    ORDER("ORDER", "订单", R.drawable.tab_icon_order,OrderFragment.class, null),
    MY("MY", "我的", R.drawable.tab_icon_my, MyFragment.class, null);

    public String          mTag;
    public String          mTitle;
    public int             mImage;
    public Class<? extends Fragment> mClss;
    public Bundle mBundle;

    MainTabs(String tag, String title, int image, Class<? extends Fragment> clss, Bundle bundle) {
        mTag = tag;
        mTitle = title;
        mImage = image;
        mClss = clss;
        mBundle = bundle;
    }
}
